/*TMODJS:{"version":37,"md5":"a12fbb054becb59af85d7c199809ccb9"}*/
template('survey_option_edit',function($data,$id) {
var $helpers=this,$escape=$helpers.$escape,id=$data.id,type=$data.type,survey_question_id=$data.survey_question_id,name=$data.name,score=$data.score,$out='';$out+='<tr data-id="';
$out+=$escape(id);
$out+='"> <td>3</td> <td> ';
if(type == 0){
$out+=' <input type="radio" name="q';
$out+=$escape(survey_question_id);
$out+='" class="isanswer" value="';
$out+=$escape(id);
$out+='"> ';
}else{
$out+=' <input type="checkbox" name="q';
$out+=$escape(survey_question_id);
$out+='" class="isanswer" value="';
$out+=$escape(id);
$out+='"> ';
}
$out+=' <input value="';
$out+=$escape(name);
$out+='" class="oname"> <span title="选项分值"> <span class="oscore-plus">+</span> <input value="';
$out+=$escape(score);
$out+='" class="oscore" readOnly="true"> <span class="oscore-minus">-</span> </span> </td> <td> <div class="btn-group"> <a class="btn btn-default btn-xs btn-odesc">描述</a> <a class="btn btn-default btn-xs btn-opic">配图</a> <a class="btn btn-default btn-xs btn-odel">删除</a> </div> </td> </tr>';
return new String($out);
});